//
//  TMGMarketHeaderView.h
//  TMGold
//
//  Created by Mac on 2017/12/15.
//  Copyright © 2017年 tangmu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "STMenuControl.h"
#import "TMWaveView.h"
#import "TMGGuessModel.h"
#import "TMGGoldHistoryModel.h"
/************黄金行情头部******************/
@class TMGMarketHeaderView;
@protocol TMGMarketHeaderViewDelegate <NSObject>
@optional;
- (void)headerView:(TMGMarketHeaderView*)headerView onSelectedPriceFromButton:(UIButton*)button;

- (void)headerView:(TMGMarketHeaderView*)headerView onSelectedSegementButtonWithIndex:(NSInteger)index;

- (void)headerView:(TMGMarketHeaderView*)headerView onSelectedHistoryButton:(UIButton*)button;

- (void)headerView:(TMGMarketHeaderView*)headerView onSelectedBuyButton:(UIButton*)button;

- (void)headerView:(TMGMarketHeaderView*)headerView onSelectedSalemButton:(UIButton*)button;

- (void)headerView:(TMGMarketHeaderView*)headerView onSelectedLowButton:(UIButton*)button;

- (void)headerView:(TMGMarketHeaderView*)headerView onSelectedUpButton:(UIButton*)button;

- (void)headerView:(TMGMarketHeaderView*)headerView onSelectedCommentButton:(UIButton*)button;

- (void)headerView:(TMGMarketHeaderView*)headerView onSelectedControl:(TMWaveView*)control;
@end
@interface TMGMarketHeaderView : UIView
@property(nonatomic, assign) id<TMGMarketHeaderViewDelegate>                     delegate;
@property(nonatomic, strong) TMGGuessModel                     *guessModel;
@property(nonatomic, strong) TMWaveView                     *upWaveControl;
@property(nonatomic, strong) TMWaveView                     *lowWaveControl;
@property(nonatomic, strong) STLabel                            *todayLable;
@property(nonatomic, strong) NSArray<TMGGoldHistoryModel*>                     *goldHistoryArray;
- (void)chartViewData;
@end
